function pathCellIndx = GetRedundantPathsII(colony)
%GETREDUNDANTPATHS Summary of this function goes here
%   Detailed explanation goes here

%Hay que tener cuidado en solo tomar en cuenta a los que son concatenables

%Tree with the indexes of
bounds = colony.bounds;
cell = colony.cell;
pathCellIndx = [];
nPath = 1;

syncMatrix = NaN*ones(length(cell), length(bounds));
for i=1:length(cell)
    initFrame = cell(i).frameID(1);
    lastFrame = cell(i).frameID(end);
    syncMatrix(i,initFrame:lastFrame) = i;
end

for frame=length(bounds):-1:1
    
     syncList = syncMatrix(~isnan(syncMatrix(:,frame)),frame);

    %Encontrar todos los redundant paths
    for here = syncList'
        
        syncMatrix(here,:) = NaN;
        diacCellList = here;
        prev = cell(here).mother;
        while prev ~= -1
            syncMatrix(prev,:) = NaN;
            diacCellList = [prev diacCellList];
            prev = cell(prev).mother;
        end
        syncMatrix(diacCellList(1),:) = NaN;
        %Lista de indices de celulas que forman una serie de datos
        pathCellIndx(nPath).lista = diacCellList;
        nPath = nPath+1;
    end
    
end

end
